Signed-off-by: Tom Woller <thomas.woller@amd.com>
do_nmi(®s, 0);
break;
+ case VMEXIT_SMI:
+ /*
+ * For asynchronous SMI's, we just need to allow global interrupts
+ * so that the SMI is taken properly in the context of the host. The
+ * standard code does a STGI after the VMEXIT which should accomplish
+ * this task. Continue as normal and restart the guest.
+ */
+ break;
+
#ifdef XEN_DEBUGGER
case VMEXIT_EXCEPTION_BP:
svm_debug_save_cpu_user_regs(®s);
GENERAL1_INTERCEPT_RDTSC | GENERAL1_INTERCEPT_PUSHF |
GENERAL1_INTERCEPT_SWINT | GENERAL1_INTERCEPT_POPF |
GENERAL1_INTERCEPT_IRET | GENERAL1_INTERCEPT_PAUSE |
- GENERAL1_INTERCEPT_TASK_SWITCH
+ GENERAL1_INTERCEPT_TASK_SWITCH | GENERAL1_INTERCEPT_SMI
);
/* turn on the general 2 intercepts */